<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js">设置data 数据对象练习</script>
</head>
<body>
    <div>Vue Data 数据绑定 </div>  
    <div id="app">
        {{ message}}
       
        <h2>{{senior.name}}</h2>
        <h3>{{senior.QQ}}</h3>
        <ul>
                <li>{{campus[0]}}</li>
         </ul>
        
    </div>
    <script>
        var app = new Vue({
            el:'#app',
            data:{
                message:'hello Vue',
                senior:{
                    name:'wuyu',
                    QQ:'1026177564',

                },
                campus:[1,2,3]
            }
        })
    </script>
</body>
</html>